import {createRouter, createWebHashHistory} from 'vue-router'
import App from "@/App.vue";

const router = createRouter({
    // 它本来默认是  createWebHistory()
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'app',
      component: App,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
  ],
})

export default router
